package sfin.swt.util;

import org.eclipse.swt.layout.FormAttachment;
import org.eclipse.swt.layout.FormData;
import org.eclipse.swt.widgets.Control;

public class LayoutUtil {
	
	public void setLayoutData(Control control, int top, int left, int right,int bottom){
		
		FormData formData = new FormData();
		formData.top = new FormAttachment(top);
		formData.left = new FormAttachment(left);
		formData.right = new FormAttachment(right);
		formData.bottom = new FormAttachment(bottom);
		control.setLayoutData(formData);
		
	}

}
